cmake_minimum_required(VERSION 3.14)
project(android_run_tflite)
set(CMAKE_CXX_STANDARD 14)

# tflite include
include_directories(tensorflow)
include_directories(tensorflow/tensorflow)
include_directories(tensorflow/tensorflow/lite)
include_directories(tensorflow/tensorflow/lite/delegates)
include_directories(tensorflow/tensorflow/lite/delegates/gpu)
include_directories(tensorflow/tensorflow/lite/delegates/gpu/common)
include_directories(tensorflow/tensorflow/lite/delegates/gpu/cl)
include_directories(tensorflow/tensorflow/lite/delegates/gpu/cl/kernels)
include_directories(tensorflow/tensorflow/lite/delegates/gpu/cl/selectors)
include_directories(tensorflow/tensorflow/lite/delegates/gpu/cl/selectors/default)
include_directories(tensorflow/tensorflow/lite/delegates/gpu/cl/testing)
include_directories(tensorflow/tensorflow/lite/tools/make/downloads/flatbuffers/include)
include_directories(tensorflow/tensorflow/lite/tools/make/downloads/absl)
include_directories(tensorflow/tensorflow/lite/tools/make/downloads/googletest/googletest/include)
include_directories(tensorflow/tensorflow/lite/tools/make/downloads/googletest/googlemock/include)

#link_directories(benchmark/tflite/lib)
#add_executable(minimal tensorflow/tensorflow/lite/examples/minimal/minimal.cc)
#target_link_libraries(minimal tensorflowlite log)
#add_executable(run_tflite src/run_tflite.cpp)
#target_link_libraries(run_tflite tensorflowlite tensorflowlite_gpu_gl EGL GLESv2 GLESv3 log)

include_directories(3rd/OpenCL-Headers)
add_executable(main
        src/main.cpp
        src/opencl_wrapper.cpp
        src/opencl_runtime.cpp
        src/CLKernel.cpp
        )
target_link_libraries(main dl)